<?php echo $this->element('header'); ?>
<div id="wrapper">
	<div id="header">
		<div class="topbar">
			<? if($gdata['user']): ?>
				<?= $gdata['user']['username'] ?> | <a href="<?=$html->url('/users/logout');?>">退出</a>
			<? else: ?>
			<a href="javascript:;" onclick="GSL.login();" id="login">登陆</a> | <a href="javascript:;" onclick="GSL.register();">注册</a>
			<? endif; ?>
		</div>
		<div class="logo">
			<a href="<?= $html->url('/blogs/index') ?>"><img src="<?php echo PRODIR ?>/img/logo.png"></a>
		</div>
	</div>
	<div id="content">
		<?=$content_for_layout;?>
	</div>
	<div id="footer"></div>
</div>
<div class="ui-corner-all" id="message"></div>
<?php echo $this->element('footer'); ?>